<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"><title>Windows 删除服务的4种方式 | xmuci Blog</title><meta name="author" content="chenmuci"><meta name="copyright" content="chenmuci"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="查看 Windows 服务使用 win+r 快捷键打开 「运行」——执行services.msc打开「服务」 使用「任务管理器」的「服务」选项卡来查看任何正在运行的服务  services.msc 实用程序会显示所有（包括没有运行的）服务。  应该删除 Windows 中的「服务」吗？Windows 中的「服务」可以分为两大类：  Windows 服务 在大多数情况下，尝试删除「Windows 服">
<meta property="og:type" content="article">
<meta property="og:title" content="Windows 删除服务的4种方式">
<meta property="og:url" content="https://xmuci.gitee.io/hexo-blog/2023/04/12/windows-delete-service/index.html">
<meta property="og:site_name" content="xmuci Blog">
<meta property="og:description" content="查看 Windows 服务使用 win+r 快捷键打开 「运行」——执行services.msc打开「服务」 使用「任务管理器」的「服务」选项卡来查看任何正在运行的服务  services.msc 实用程序会显示所有（包括没有运行的）服务。  应该删除 Windows 中的「服务」吗？Windows 中的「服务」可以分为两大类：  Windows 服务 在大多数情况下，尝试删除「Windows 服">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://xmuci.gitee.io/hexo-blog/img/images/windows.jpg">
<meta property="article:published_time" content="2023-04-12T03:55:37.602Z">
<meta property="article:modified_time" content="2023-04-12T05:47:14.003Z">
<meta property="article:author" content="chenmuci">
<meta property="article:tag" content="windows 服务">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://xmuci.gitee.io/hexo-blog/img/images/windows.jpg"><link rel="shortcut icon" href="/hexo-blog/img/favicon.png"><link rel="canonical" href="https://xmuci.gitee.io/hexo-blog/2023/04/12/windows-delete-service/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/hexo-blog/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/hexo-blog/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"top-center"},
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: true,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  }
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Windows 删除服务的4种方式',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-04-12 13:47:14'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
    win.getCSS = (url,id = false) => new Promise((resolve, reject) => {
      const link = document.createElement('link')
      link.rel = 'stylesheet'
      link.href = url
      if (id) link.id = id
      link.onerror = reject
      link.onload = link.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        link.onload = link.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(link)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.3.0"><link rel="alternate" href="/hexo-blog/atom.xml" title="xmuci Blog" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="/hexo-blog/img/avatar.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/hexo-blog/archives/"><div class="headline">文章</div><div class="length-num">15</div></a><a href="/hexo-blog/tags/"><div class="headline">标签</div><div class="length-num">23</div></a><a href="/hexo-blog/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/hexo-blog/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/messageboard/"><i class="fa-fw fa fa-commenting"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 菜单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/hexo-blog/about/"><i class="fa-fw fa fa-user"></i><span> 关于</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly/"><i class="fa-fw fa fa-heart"></i><span> butterfly主题</span></a></li></ul></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('/hexo-blog/img/images/windows.jpg')"><nav id="nav"><span id="blog-info"><a href="/hexo-blog/" title="xmuci Blog"><span class="site-name">xmuci Blog</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/hexo-blog/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/messageboard/"><i class="fa-fw fa fa-commenting"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/hexo-blog/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 菜单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/hexo-blog/about/"><i class="fa-fw fa fa-user"></i><span> 关于</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly/"><i class="fa-fw fa fa-heart"></i><span> butterfly主题</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Windows 删除服务的4种方式</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-04-12T03:55:37.602Z" title="发表于 2023-04-12 11:55:37">2023-04-12</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-04-12T05:47:14.003Z" title="更新于 2023-04-12 13:47:14">2023-04-12</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/hexo-blog/categories/Windows/">Windows</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Windows 删除服务的4种方式"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h3 id="查看-Windows-服务"><a href="#查看-Windows-服务" class="headerlink" title="查看 Windows 服务"></a>查看 Windows 服务</h3><h4 id="使用-win-r-快捷键打开-「运行」——执行services-msc打开「服务」"><a href="#使用-win-r-快捷键打开-「运行」——执行services-msc打开「服务」" class="headerlink" title="使用 win+r 快捷键打开 「运行」——执行services.msc打开「服务」"></a>使用 win+r 快捷键打开 「运行」——执行services.msc打开「服务」</h4><p><img src= "" data-lazy-src="https://images-xzl-aliyun.oss-cn-shanghai.aliyuncs.com/hexo-images/windows/windows1.jpg"></p>
<h4 id="使用「任务管理器」的「服务」选项卡来查看任何正在运行的服务"><a href="#使用「任务管理器」的「服务」选项卡来查看任何正在运行的服务" class="headerlink" title="使用「任务管理器」的「服务」选项卡来查看任何正在运行的服务"></a>使用「任务管理器」的「服务」选项卡来查看任何正在运行的服务</h4><p><img src= "" data-lazy-src="https://images-xzl-aliyun.oss-cn-shanghai.aliyuncs.com/hexo-images/windows/windows2.jpg"></p>
<blockquote>
<p>services.msc 实用程序会显示所有（包括没有运行的）服务。</p>
</blockquote>
<h3 id="应该删除-Windows-中的「服务」吗？"><a href="#应该删除-Windows-中的「服务」吗？" class="headerlink" title="应该删除 Windows 中的「服务」吗？"></a>应该删除 Windows 中的「服务」吗？</h3><p>Windows 中的「服务」可以分为两大类：</p>
<ul>
<li><strong>Windows 服务</strong> 在大多数情况下，尝试删除「Windows 服务」并不是一个好主意。 其中许多服务执行了 Windows 系统的基本功能，删除它们可能会使计算机崩溃。</li>
<li><strong>第三方服务</strong> 是由安装的应用程序创建的。大多数应用程序创建的「服务」主要是提供一些后台功能，但我们也可以删除一些不常用的第三方服务，以释放系统性能。</li>
</ul>
<blockquote>
<p>其实，一些 Windows 服务也属于「可有可无」的范围，可以在不影响核心系统功能的情况下停止和删除。但强烈建议不要去删除 Windows 默认的服务。</p>
</blockquote>
<h3 id="方法一：使用「注册表」删除-Windows-服务"><a href="#方法一：使用「注册表」删除-Windows-服务" class="headerlink" title="方法一：使用「注册表」删除 Windows 服务"></a>方法一：使用「注册表」删除 Windows 服务</h3><p>注册表是 Windows 操作系统和应用程序存储其低层级配置的数据库，当然也包括了「服务」。在 Windows 中删除任何「服务」最简单方法就是使用「注册表编辑器」。</p>
<ol>
<li>使用Windows + R快捷键打开「运行」——执行regedit打开「注册表编辑器」</li>
<li>导航到：<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services</span><br></pre></td></tr></table></figure>
<img src= "" data-lazy-src="https://images-xzl-aliyun.oss-cn-shanghai.aliyuncs.com/hexo-images/windows/windows3.jpg"></li>
<li>Windows 上的所有「服务」都由Services目录中的键表示，只需右击要删除的服务名称，然后选择删除即可。</li>
</ol>
<blockquote>
<p>下次重新启动 PC 时，该「服务」将会被直接删除。</p>
</blockquote>
<h3 id="方法二：使用「命令提示符」删除-Windows-服务"><a href="#方法二：使用「命令提示符」删除-Windows-服务" class="headerlink" title="方法二：使用「命令提示符」删除 Windows 服务"></a>方法二：使用「命令提示符」删除 Windows 服务</h3><p>「命令提示符」提供了另一种删除「服务」的简单方法，但前提是需要知道想要删除的「服务名称」，所以需要先查看服务名称：</p>
<ol>
<li>使用Windows + R快捷键打开「运行」——执行cmd打开「命令提示符」</li>
<li>执行以下命令列出当前 Windows 系统中的所有服务和名称：<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sc queryex type=service state=all</span><br></pre></td></tr></table></figure>
<img src= "" data-lazy-src="https://images-xzl-aliyun.oss-cn-shanghai.aliyuncs.com/hexo-images/windows/windows4.jpg"></li>
<li>可以执行以下命令删除任何不需要的服务，执行成功之后会有反馈输出进行提示：<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sc delete 服务名称</span><br></pre></td></tr></table></figure></li>
</ol>
<blockquote>
<p>命令执行成功后「服务」会被立即删除，不用重启计算机。</p>
</blockquote>
<h3 id="方法三：使用「Windows-PoserShell」删除-Windows-服务"><a href="#方法三：使用「Windows-PoserShell」删除-Windows-服务" class="headerlink" title="方法三：使用「Windows PoserShell」删除 Windows 服务"></a>方法三：使用「Windows PoserShell」删除 Windows 服务</h3><ol>
<li>在「开始」菜单中搜索powershell——以管理员身份打开「Windows PowerShell」</li>
<li>PowerShell 也可以显示 Windows 系统中所有「服务」的名称，只需使用以下命令即可查看服务列表：<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Get-Service</span><br></pre></td></tr></table></figure>
<img src= "" data-lazy-src="https://images-xzl-aliyun.oss-cn-shanghai.aliyuncs.com/hexo-images/windows/windows5.jpg"></li>
<li>可以执行以下命令删除任何不需要的服务，执行成功之后会有反馈输出进行提示：<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sc delete 服务名称</span><br></pre></td></tr></table></figure></li>
</ol>
<blockquote>
<p>下次重新启动 PC 时，该「服务」将会被直接删除。</p>
</blockquote>
<h3 id="方法四：使用-Autoruns-删除-Windows-服务"><a href="#方法四：使用-Autoruns-删除-Windows-服务" class="headerlink" title="方法四：使用 Autoruns 删除 Windows 服务"></a>方法四：使用 Autoruns 删除 Windows 服务</h3><p>如果觉得「注册表」和命令行的操作方式太过复杂或麻烦，可以尝试使用 <a target="_blank" rel="noopener" href="https://www.sysgeek.cn/tag/sysinternals/">sysinternals 工具集</a> 里面的图形化小工具 <a target="_blank" rel="noopener" href="https://www.sysgeek.cn/autoruns/">Autoruns</a> 来删除 Windows 服务：</p>
<ol>
<li>先去到 <a target="_blank" rel="noopener" href="https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns">autoruns 工具的官网</a> 下载它——右击选择「以管理员身份运行」打开它</li>
<li>切换到「Services」选项卡，可以查看在当前 Windows 中注册的所有「服务」。Autoruns 还会标识「服务」的发布者是否经过验证，帮助你轻松剔除无良第三方服务。</li>
<li>右键单击要删除的任何「服务」，然后从出现的下拉菜单中选择「Delete」即可删除该服务。</li>
</ol>
<blockquote>
<p>操作执行成功后「服务」会被立即删除，不用重启计算机。</p>
</blockquote>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://xmuci.gitee.io/hexo-blog">chenmuci</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://xmuci.gitee.io/hexo-blog/2023/04/12/windows-delete-service/">https://xmuci.gitee.io/hexo-blog/2023/04/12/windows-delete-service/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://xmuci.gitee.io/hexo-blog" target="_blank">xmuci Blog</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/hexo-blog/tags/windows-%E6%9C%8D%E5%8A%A1/">windows 服务</a></div><div class="post_share"><div class="social-share" data-image="/hexo-blog/img/images/windows.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><div class="post-reward"><div class="reward-button"><i class="fas fa-qrcode"></i> 打赏</div><div class="reward-main"><ul class="reward-all"><li class="reward-item"><a href="/hexo-blog/img/wechat.jpg" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="/hexo-blog/img/wechat.jpg" alt="微信"/></a><div class="post-qr-code-desc">微信</div></li><li class="reward-item"><a href="/hexo-blog/img/alipay.jpg" target="_blank"><img class="post-qr-code-img" src= "" data-lazy-src="/hexo-blog/img/alipay.jpg" alt="支付宝"/></a><div class="post-qr-code-desc">支付宝</div></li></ul></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/hexo-blog/2023/04/12/aws-ec2/" title="亚马逊云创建Aws EC2实例"><img class="cover" src= "" data-lazy-src="/hexo-blog/img/images/aws.jpg" onerror="onerror=null;src='/hexo-blog/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">亚马逊云创建Aws EC2实例</div></div></a></div><div class="next-post pull-right"><a href="/hexo-blog/2023/04/12/python-windows/" title="将Python脚本注册到Windows后台服务"><img class="cover" src= "" data-lazy-src="/hexo-blog/img/images/srvany.jpg" onerror="onerror=null;src='/hexo-blog/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">将Python脚本注册到Windows后台服务</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span>相关推荐</span></div><div class="relatedPosts-list"><div><a href="/hexo-blog/2023/04/12/python-windows/" title="将Python脚本注册到Windows后台服务"><img class="cover" src= "" data-lazy-src="/hexo-blog/img/images/srvany.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2023-04-12</div><div class="title">将Python脚本注册到Windows后台服务</div></div></a></div></div></div><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div class="vcomment" id="vcomment"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="/hexo-blog/img/avatar.jpg" onerror="this.onerror=null;this.src='/hexo-blog/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">chenmuci</div><div class="author-info__description">做自己领域的佼佼者</div></div><div class="card-info-data site-data is-center"><a href="/hexo-blog/archives/"><div class="headline">文章</div><div class="length-num">15</div></a><a href="/hexo-blog/tags/"><div class="headline">标签</div><div class="length-num">23</div></a><a href="/hexo-blog/categories/"><div class="headline">分类</div><div class="length-num">9</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/chenmuci"><i class="fab fa-github"></i><span>感谢fork</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="mailto:xiezhilong1222@163.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">网站初建，内容正在不断补充中，如果您有什么建议，请到留言板进行留言反馈。</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9F%A5%E7%9C%8B-Windows-%E6%9C%8D%E5%8A%A1"><span class="toc-number">1.</span> <span class="toc-text">查看 Windows 服务</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8-win-r-%E5%BF%AB%E6%8D%B7%E9%94%AE%E6%89%93%E5%BC%80-%E3%80%8C%E8%BF%90%E8%A1%8C%E3%80%8D%E2%80%94%E2%80%94%E6%89%A7%E8%A1%8Cservices-msc%E6%89%93%E5%BC%80%E3%80%8C%E6%9C%8D%E5%8A%A1%E3%80%8D"><span class="toc-number">1.1.</span> <span class="toc-text">使用 win+r 快捷键打开 「运行」——执行services.msc打开「服务」</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8%E3%80%8C%E4%BB%BB%E5%8A%A1%E7%AE%A1%E7%90%86%E5%99%A8%E3%80%8D%E7%9A%84%E3%80%8C%E6%9C%8D%E5%8A%A1%E3%80%8D%E9%80%89%E9%A1%B9%E5%8D%A1%E6%9D%A5%E6%9F%A5%E7%9C%8B%E4%BB%BB%E4%BD%95%E6%AD%A3%E5%9C%A8%E8%BF%90%E8%A1%8C%E7%9A%84%E6%9C%8D%E5%8A%A1"><span class="toc-number">1.2.</span> <span class="toc-text">使用「任务管理器」的「服务」选项卡来查看任何正在运行的服务</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%BA%94%E8%AF%A5%E5%88%A0%E9%99%A4-Windows-%E4%B8%AD%E7%9A%84%E3%80%8C%E6%9C%8D%E5%8A%A1%E3%80%8D%E5%90%97%EF%BC%9F"><span class="toc-number">2.</span> <span class="toc-text">应该删除 Windows 中的「服务」吗？</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%96%B9%E6%B3%95%E4%B8%80%EF%BC%9A%E4%BD%BF%E7%94%A8%E3%80%8C%E6%B3%A8%E5%86%8C%E8%A1%A8%E3%80%8D%E5%88%A0%E9%99%A4-Windows-%E6%9C%8D%E5%8A%A1"><span class="toc-number">3.</span> <span class="toc-text">方法一：使用「注册表」删除 Windows 服务</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%96%B9%E6%B3%95%E4%BA%8C%EF%BC%9A%E4%BD%BF%E7%94%A8%E3%80%8C%E5%91%BD%E4%BB%A4%E6%8F%90%E7%A4%BA%E7%AC%A6%E3%80%8D%E5%88%A0%E9%99%A4-Windows-%E6%9C%8D%E5%8A%A1"><span class="toc-number">4.</span> <span class="toc-text">方法二：使用「命令提示符」删除 Windows 服务</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%96%B9%E6%B3%95%E4%B8%89%EF%BC%9A%E4%BD%BF%E7%94%A8%E3%80%8CWindows-PoserShell%E3%80%8D%E5%88%A0%E9%99%A4-Windows-%E6%9C%8D%E5%8A%A1"><span class="toc-number">5.</span> <span class="toc-text">方法三：使用「Windows PoserShell」删除 Windows 服务</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%96%B9%E6%B3%95%E5%9B%9B%EF%BC%9A%E4%BD%BF%E7%94%A8-Autoruns-%E5%88%A0%E9%99%A4-Windows-%E6%9C%8D%E5%8A%A1"><span class="toc-number">6.</span> <span class="toc-text">方法四：使用 Autoruns 删除 Windows 服务</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/hexo-blog/2023/05/12/network/" title="网线水晶头线序接法解析"><img src= "" data-lazy-src="/hexo-blog/img/images/network.jpg" onerror="this.onerror=null;this.src='/hexo-blog/img/404.jpg'" alt="网线水晶头线序接法解析"/></a><div class="content"><a class="title" href="/hexo-blog/2023/05/12/network/" title="网线水晶头线序接法解析">网线水晶头线序接法解析</a><time datetime="2023-05-12T03:59:53.538Z" title="发表于 2023-05-12 11:59:53">2023-05-12</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/hexo-blog/2023/04/24/bcd/" title="BCD码的编程规范">BCD码的编程规范</a><time datetime="2023-04-24T03:41:21.570Z" title="发表于 2023-04-24 11:41:21">2023-04-24</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/hexo-blog/2023/04/24/reverse/" title="大端序和小端序">大端序和小端序</a><time datetime="2023-04-24T03:34:17.004Z" title="发表于 2023-04-24 11:34:17">2023-04-24</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/hexo-blog/2023/04/12/bbr/" title="服务器加速脚本，含BBR Plus/BBR原版/BBR魔改版/锐速，BBR四合一脚本"><img src= "" data-lazy-src="/hexo-blog/img/images/bbr.png" onerror="this.onerror=null;this.src='/hexo-blog/img/404.jpg'" alt="服务器加速脚本，含BBR Plus/BBR原版/BBR魔改版/锐速，BBR四合一脚本"/></a><div class="content"><a class="title" href="/hexo-blog/2023/04/12/bbr/" title="服务器加速脚本，含BBR Plus/BBR原版/BBR魔改版/锐速，BBR四合一脚本">服务器加速脚本，含BBR Plus/BBR原版/BBR魔改版/锐速，BBR四合一脚本</a><time datetime="2023-04-12T10:23:57.285Z" title="发表于 2023-04-12 18:23:57">2023-04-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/hexo-blog/2023/04/12/pagoda/" title="搭建宝塔面板"><img src= "" data-lazy-src="/hexo-blog/img/images/baota.jpg" onerror="this.onerror=null;this.src='/hexo-blog/img/404.jpg'" alt="搭建宝塔面板"/></a><div class="content"><a class="title" href="/hexo-blog/2023/04/12/pagoda/" title="搭建宝塔面板">搭建宝塔面板</a><time datetime="2023-04-12T09:08:49.113Z" title="发表于 2023-04-12 17:08:49">2023-04-12</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By chenmuci</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text"><div class="icp">联系邮箱：service@outlook.com</div></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/hexo-blog/js/utils.js"></script><script src="/hexo-blog/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script>function panguFn () {
  if (typeof pangu === 'object') pangu.autoSpacingPage()
  else {
    getScript('https://cdn.jsdelivr.net/npm/pangu/dist/browser/pangu.min.js')
      .then(() => {
        pangu.autoSpacingPage()
      })
  }
}

function panguInit () {
  if (false){
    GLOBAL_CONFIG_SITE.isPost && panguFn()
  } else {
    panguFn()
  }
}

document.addEventListener('DOMContentLoaded', panguInit)</script><div class="js-pjax"><script>function loadValine () {
  function initValine () {
    const valine = new Valine(Object.assign({
      el: '#vcomment',
      appId: 'TkclbxB9msyt5P9BLqMqtVDr-gzGzoHsz',
      appKey: 'bT4EnY4d9ps1G2taDFJZISBH',
      avatar: 'monsterid',
      serverURLs: '',
      emojiMaps: "",
      path: window.location.pathname,
      visitor: false
    }, null))
  }

  if (typeof Valine === 'function') initValine() 
  else getScript('https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js').then(initValine)
}

if ('Valine' === 'Valine' || !true) {
  if (true) btf.loadComment(document.getElementById('vcomment'),loadValine)
  else setTimeout(loadValine, 0)
} else {
  function loadOtherComment () {
    loadValine()
  }
}</script></div><div class="aplayer no-destroy" data-id="3779629" data-server="netease" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="none" data-autoplay="false" muted></div><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/click-heart.min.js" async="async" mobile="false"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/metingjs/dist/Meting.min.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>